<style>
    body {
        background-color: #F2F2F2;
    }

    .layui-elem-quote {
        /*margin-bottom: 10px;*/
        /*line-height: 1px;*/
        background-color: white;
        padding: 15px;
        border-left: 5px solid rgb(110, 68, 255);
        border-radius: 0px 2px 2px 0px;
        font-weight: bolder;
        color: black;
    }
</style>
<div class="layuimini-container">
    <div class="layuimini-main">
        <blockquote class="layui-elem-quote">
            更多插件请去<a href="http://mall.buwangkeji.com/addons/website/home.Plugin/index" target="_blank"  style="color: rgb(110, 68, 255)">插件市场</a>下载安装。
        </blockquote>
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <!--列表区域-->
            <div class="layui-card" style="background-color: #F2F2F2;">
                <table id="currentTable"></table>

                <!--工具栏-->
                <script type="text/html" id="listToolbar">
                </script>

                <!--标识-->
                <script type="text/html" id="name">
                    {{ d.name }}
                </script>
                <!--名称-->
                <script type="text/html" id="title">
                    {{ d.title }}
                </script>
                <!--作者-->
                <script type="text/html" id="author">
                    {{ d.author }}
                </script>
                <!--版本号-->
                <script type="text/html" id="version">
                    {{ d.version }}
                </script>
                <!--状态:-1=未安装,0=禁用,1=启用-->
                <script type="text/html" id="status">
                    {{# if (d.status == '-1') { }}
                    <span style="color: #1E9FFF;">未安装</span>
                    {{# } else if(d.status == '0') { }}
                    <span style="color: #1E9FFF;">禁用</span>
                    {{# } else if(d.status == '1') { }}
                    <span style="color: #1E9FFF;">启用</span>
                    {{# } else { }}
                    <span style="color: #1E9FFF;">{{d.status}}</span>
                    {{# } }}
                </script>

                <!--状态开关-->
                <script type="text/html" id="listBar">
<!--                    <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="del">删除</a>-->

                    {{# if (d.status == '-1') { }}
                    <a class="layui-btn layui-btn-xs" lay-event="install">安装</a>
                    {{# } else if(d.status == '0') { }}
                    <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
                    <a class="layui-btn layui-btn-xs" lay-event="enable">启用</a>
                    <a class="layui-btn layui-btn-xs" lay-event="uninstall">卸载</a>
                    {{# } else if(d.status == '1') { }}
                    <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
                    <a class="layui-btn layui-btn-xs" lay-event="config">插件配置</a>
                    <a class="layui-btn layui-btn-xs" lay-event="disable">禁用</a>
                    {{# } else { }}
                    {{# } }}
                </script>
            </div>
        </div>
    </div>
    </div>
</div>
<script>
    //修改插件配置
    function config(name) {
        layer.open({
            title: '修改插件配置',
            type: 2,
            shade: 0.2,
            maxmin: true,
            area: ['50%', '90%'],
            content: "{:Url('config')}?name=" + name,
        });
    }
    function bw_edit(id){
        layer.open({
            title: '价格',
            type: 2,
            shade: 0.2,
            maxmin: true,
            area: ['50%', '90%'],
            content: "{:Url('edit')}?id=" + id,
        });
    }
</script>